package com.famdoc.Pojo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.famdoc.Pojo.dto.CheckForm;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
public class Patient {
    @ExcelProperty("序号")
    private Integer id;

    @ExcelIgnore
    private Integer doctorId; //签约医生的id

    @ExcelProperty("姓名")
    private String name; //患者姓名

    @ExcelProperty("性别")
    private String sex; //患者性别

    @ExcelProperty("年龄")
    private Integer age; //患者年龄

    @ExcelProperty("家庭地址")
    private String address; //患者家庭地址

    @ExcelProperty("身份证号")
    private String idNumber; //患者身份证号

    @ExcelProperty("手机号")
    private String phoneNumber; //患者手机号

    @ExcelIgnore
    private Integer sign; //个人是否签约

    @ExcelIgnore
    private Integer homeId; //家庭档案户主id

    @ColumnWidth(20)
    @ExcelProperty("建档时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime; //创建档案的时间

    @ColumnWidth(20)
    @ExcelIgnore
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime signTime; //签约时间

    @ExcelIgnore
    private Integer signYears; //签约年限

    @ExcelProperty("疾病类型")
    private String disease; //疾病类型

    @ExcelIgnore
    private Integer signHome; //家庭是否签约

    @ColumnWidth(20)
    @ExcelIgnore
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime signHomeTime; //家庭签约时间

    @ExcelIgnore
    private Integer signHomeYears; //家庭签约年限

    @ExcelIgnore
    private Integer signHomeDoctorId; //家庭签约医生id

    @ExcelIgnore
    private List<CheckForm> CheckForm;
}
